import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: '/xxxxxx'
    },
    {
        path: '/xxxxxx',
        name: '帅龍之龍',
        component: () => import('@/views/XXXXXX/index.vue'),
        children: [
            {
                path: '/xxxxxx/aaaaaa',
                name: '赤龍神帝',
                components: { AAAAAA: () => import('@/views/XXXXXX/AAAAAA/index.vue') },
                children: []
            },
            {
                path: '/xxxxxx/bbbbbb',
                name: '待定栏目',
                components: { BBBBBB: () => import('@/views/XXXXXX/BBBBBB/index.vue') },
                children: [],
            },
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router